package meijuli.com.join51.business.message;

import meijuli.com.join51.business.model.Announcement;
import meijuli.com.join51.business.model.Message;

import java.util.ArrayList;
import java.util.List;

/**
 * 消息中心presenter、view约束类
 *
 * @author jack 2017-05-12 18:59
 */
public class Contract {
    public interface MessageView {
        public void beforeLoad();

        public void afterLoad();

        public void loadError();

        public void loadMessage(List<Message> messageList);

        public void loadAnnouncement(ArrayList<Announcement> announcementList);

    }

    public interface MessagePresenter {
        public void loadMessage(int pageindex, String userId, boolean isShowLoading);
        public void loadAnnouncement(int pageindex, String userId, boolean isShowLoading);
    }
}
